<template>
    <div class="header">
        <div class="header-back"><span class="iconfont">&#xeb21;</span> </div>
        <div class="header-search">
            <span class="iconfont">&#xe601;</span>
            上海海昌海洋公园
        </div>
        <div class="header-city">{{city}} <span class="iconfont">&#xe665;</span> </div>
    </div>
</template>
<script>
export default {
    name: 'homeHeader',
    props: ['city'],
    mounted(){

    }
}
</script>
<style lang="scss" scoped>
.header{
    line-height: 0.88rem;
    font-size: 0.08rem;
    text-align: center;
    display: flex;
    .header-back{
        float: left;
        width:0.9rem;
    }
    .header-search{
        flex: 1;
        height: 0.6rem;
        line-height: 0.6rem;
        margin-top: 0.2rem;
        margin-left: 0.2rem;
        margin-right: 0.2rem;
        border-radius: 0.5rem;
        box-shadow: 0 0 0.01rem 0.02rem #cccccc;
    }
    .header-city{
        float: right;
        width: 1.4rem;
    }
}
</style>